import { stringify } from 'qs';
import request from '../utils/request';

export async function searchSysNotice(params) {
  return request(`/api/admin/sys/sysNotice/search?${stringify(params)}`);
}
export async function getSysNotice(params) {
  return request(`/api/admin/sys/sysNotice/` + params);
}
export async function saveSysNotice(params) {
  return request(`/api/admin/sys/sysNotice`, {
    method: 'POST',
    'Content-Type': 'application/x-www-form-urlencoded;',
    body: params,
  });
}
export async function removeSysNotice(params) {
  return request(`/api/admin/sys/sysNotice/remove`, {
    method: 'POST',
    'Content-Type': 'application/x-www-form-urlencoded;',
    body: params,
  });
}
export async function publishSysNotice(params) {
  return request(`/api/admin/sys/sysNotice/publish`, {
    method: 'POST',
    'Content-Type': 'application/x-www-form-urlencoded;',
    body: params,
  });
}
export async function downSysNotice(params) {
  return request(`/api/admin/sys/sysNotice/downNotic`, {
    method: 'POST',
    'Content-Type': 'application/x-www-form-urlencoded;',
    body: params,
  });
}
export async function auditPassNotic(params) {
  return request(`/api/admin/sys/sysNotice/pass`, {
    method: 'POST',
    'Content-Type': 'application/x-www-form-urlencoded;',
    body: params,
  });
}
export async function auditNotPassNotic(params) {
  return request(`/api/admin/sys/sysNotice/notpass`, {
    method: 'POST',
    'Content-Type': 'application/x-www-form-urlencoded;',
    body: params,
  });
}
